# Contributor: Jake Buchholz Göktürk <tomalok@gmail.com>
# Maintainer: Jake Buchholz Göktürk <tomalok@gmail.com>
pkgname=yx
pkgver=1.0.0
pkgrel=0
pkgdesc="A small shell tool that allows extraction of targeted data from YAML"
url="https://gitlab.com/tomalok/yx"
arch="all"
license="MIT"
makedepends="yaml-dev"
source="
	yx-$pkgver.tar.gz::https://gitlab.com/tomalok/yx/-/archive/$pkgver/yx-$pkgver.tar.gz
"

build() {
	make
}

check() {
	make test
}

package() {
	make install PREFIX="$pkgdir/usr"
}

sha512sums="
6243714acefacfa7b6c05f54088d7f8593a95a68662f1124db27ff519ed77a5e6e1f325bbbb1280e3994560bc375a4ae75cc7c76d7f5b0d34f957126766c7862  yx-1.0.0.tar.gz
"
